<template>
  <div>
    Child
    <!-- 触发自定义事件 -->
    <button @click="$emit('click')">按钮1</button>
    <button @click="$listeners.click()">按钮2</button>
  </div>
</template>

<script>
export default {
  name: "Child",
};
</script>

<style scoped></style>
